package com.nd.android.u.ui.activity.message_chat;

import android.os.Bundle;

import com.nd.android.u.controller.ChatConst.LocalMessageType;
import com.nd.android.u.ui.R;
import com.nd.android.u.ui.activity.chat_config.DeleteHistoryDialog;
import com.nd.android.u.ui.beanStarApp.DisplayMessage_System;

/**
 * 系统消息界面 <br>
 * Created 2014-7-23 下午2:19:54
 * 
 * @version
 * @author cb
 * @see
 */
public class ChatActivity_System extends BaseChatMessageActivity {
	/** 删除历史记录对话框 */
	private DeleteHistoryDialog mDialog;

	@Override
	protected boolean getParam(Bundle bundle) {
		messageType = LocalMessageType.SYSTEM;
		name = getString(R.string.notify_system);
		return true;
	}

	@Override
	protected int getRightButtonRes() {
		return R.drawable.delete_title_bg;
	}

	@Override
	public void rightBtnHandle() {
		if (mDialog == null) {
			DisplayMessage_System message = new DisplayMessage_System("",0);
			mDialog = new DeleteHistoryDialog(this, message);
		}
		mDialog.show();
	}
}
